<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>


	  <link type="text/css" rel="stylesheet" href="../Public/css/reset.css">
    <link type="text/css" rel="stylesheet" href="../Public/css/DateTimePicker.css">
    <link type="text/css" rel="stylesheet" href="../Public/css/style.css">
            <script type="text/javascript" src="../Public/script/jquery.js"></script>
<script type="text/javascript" src="../Public/layer/layer.js"></script>
</head>
<body style="margin-top: 0px">
<div style="text-align: center;height: auto;">
<div style="text-align: center;height: auto;">标题-{$fangan.biaoti}</div>

<div style="height: auto;">
{$fangan.intro}

</div>
</div>
<if condition="$fangan.zid neq 10 AND $fangan.fid neq 5 ">
<div style=" margin:0 auto">
              
               <button style="padding: 10px 40px;background-color:#49bf9d;border: none;margin-top: 20px; margin-left: 50px; text-align:center; cursor: pointer;"   onclick="butai(this,{$fangan.id} )"  >不太满意</button>
                           <button style="padding: 10px 40px;background-color:#49bf9d;border: none;margin-top: 20px;text-align:center; cursor: pointer;" onclick="queding(this,{$fangan.id})"  >确定设计</button>
</div>

</if>

<script type="text/javascript">
function butai(obj, id){
var index = parent.layer.getFrameIndex(window.name); 
$.ajax({
    url:'{:U("User/butai")}',
    type:'post',
    data:{
    	id:id
    },
    success:function(data){
 if (data==1) {
  layer.msg('不太满意',{time:1000},function(){
    
   parent.layer.close(index);

})


 }

    }



})


}
function queding(obj, id){
var index = parent.layer.getFrameIndex(window.name); 
$.ajax({
    url:'{:U("User/queding")}',
    type:'post',
    data:{
    	id:id
    },
    success:function(data){
 if (data==1) {
  layer.msg('已完成',{time:1000},function(){
    
   parent.layer.close(index);

})


 }

    }



})


}

</script>

<script>
var index = parent.layer.getFrameIndex(window.name); //获取当前窗体索引
$('#submit').on('click', function(){


    parent.layer.close(index); //执行关闭
        

});
</script>


</body>
</html>
